#  无参函数
def say_hello():
    print("Hello")


say_hello() #函数调用要在函数定义之后


# 有参函数
def say_hello(name):
    print("Hello,", name)

say_hello('Curry')

# 返回值
def add(a, b):
    return a + b

add(1, 2)

# 嵌套函数
def outer():
    def inner():
        print("Inner")
    inner()

outer()